package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 任务与设施关系
 *
 * @author code-generate
 * @date 2021-08-26
 */
@Data
@DbTable(tableName = "t_task_facilities_relation")
public class TaskFacilitiesRelation extends BaseEntity {
        /**
     * 标段Id  t_section.c_id
     */
    @DbTableField(columnName = "c_task_id", dbType = DbTypeEnum.INTEGER)
    public Integer taskId ;




    /**
     * 公园Id t_park.c_id
     */
    @DbTableField(columnName = "c_facilities_id", dbType = DbTypeEnum.INTEGER)
    public Integer facilitiesId ;

    /**
     * 设施名称
     */
    @DbTableField(columnName = "c_facilities_name", dbType = DbTypeEnum.VARCHAR)
    public String facilitiesName ;


    /**
     * 关联开始时间
     */
    @DbTableField(columnName = "c_begin_date", dbType = DbTypeEnum.TIMESTAMP)
    public LocalDateTime beginDate ;

    /**
     * 关联结束时间
     */
    @DbTableField(columnName = "c_end_date", dbType = DbTypeEnum.TIMESTAMP)
    public LocalDateTime endDate ;

    /**
     * 关联状态 1 当前 2 历史
     */
    @DbTableField(columnName = "c_status", dbType = DbTypeEnum.SMALLINT)
    public Short status ;



}
